import Layout from '@/page/index/'

export default [{
  path: '/wel',
  component: Layout,
  redirect: "/policeInformation/add",
  children: [{
    path: 'index',
    name: '首页',
    meta: {
      i18n: 'dashboard'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/index')
  }, {
    path: 'dashboard',
    name: '控制台',
    meta: {
      i18n: 'dashboard',
      menu: false,
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
  },

  ]
},
  {
    path: '/policeInformation',
    component: Layout,
    children: [{
      path: '/policeInformation/add',
      name: '新增警情',
      meta: {
        i18n: 'dashboard'
      },
      component: () => import('@/views/policeInformation/add')
    }
    ]
  },
  {
    path: '/smsManage',
    component: Layout,
    children: [{
      path: '/smsManage/manageList',
      name: '短信列表',
      meta: {
        i18n: 'dashboard'
      },
      component: () => import('@/views/smsManage/manageList')
    }
    ]
  },
  {
    path: '/companyInformation',
    component: Layout,
    redirect: '/companyInformation/departmentManagement',
    children: [{
      path: 'departmentManagement',
      name: '部门管理',
      meta: {
        i18n: 'departmentManagement'
      },
      component: () =>
        import( /* webpackChunkName: "views" */
          '@/views/famfrontend/companyInformation/departmentManagement/departmentManagement')
    }]
  },
  {
    path: '/roleManagement',
    component: Layout,
    redirect: '/roleManagement/roleManagement',
    children: [{
      path: 'roleManagement',
      name: '角色管理',
      meta: {
        i18n: 'roleManagement'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/famfrontend/roleManagement/roleManagement')
    }]
  },
  {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
      path: 'index',
      name: '个人信息',
      meta: {
        i18n: 'info'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
    }]
  }, {
    path: '/famfrontend',
    component: Layout,
    redirect: '/famfrontend/accountManagement',
    children: [{
      path: '/famfrontend/accountManagement',
      name: '账号管理',
      meta: {
        i18n: 'accountManagement'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/famfrontend/accountManagement/index')
    }]
  }
]
